import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/login/login.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: login,
    meta: {
      title: '登录'
    }
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/Home.vue'),
    meta: {
      title: '首页',
      is_logn: false   //判断是否需要登录
    }
  },
  {
    path: '/prop',
    name: 'prop',
    component: () => import('../views/prop/prop.vue'),
    meta: {
      title: '登录',
      is_logn: false   //判断是否需要登录
    }
  }
]

const router = new VueRouter({
  routes
})

export default router
